<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      //
      window.onload = function () {
        var result = {};
        var querys = window.location.search.substring(1).split("&");

        querys.forEach(function (item, index) {
          var a = item.split("=");
          var key = a[0];
          var value = a[1];
          result[key] = value;
        });
        console.log(result);
      };
    </script>
  </head>
  <body></body>
</html>
